#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QMap>
#include <QMdiSubWindow>
#include <QImage>
#include <QPoint>
#include "sdocument.h"

namespace Ui
{
    class MainWindowClass;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    ImageDocument* GetCurrentDocument() const;
private:
    QMap<QMdiSubWindow*,ImageDocument*> docList;
    Ui::MainWindowClass *ui;
    bool initialized;
    QImage tempImage;
    QImage tempMask;
public slots:
    void documentContextMenu(const QPoint & pos);
private slots:
    void on_pbDrawMask_clicked();
    void on_pbSaveToDoc_clicked();
    void on_pbClearImage_clicked();
    void on_pbSelectAndDraw_clicked();
    void on_pbExecQuery_clicked();
    void on_actionRemoveHoles_triggered();
    void on_pushButton_clicked();
    void on_actionHoughDemo_triggered();
    void on_pbGenerateSegments_clicked();
    void on_actionClearBase_triggered();
    void on_pbGenerateLines_clicked();
    void on_actionLoadFile2_triggered();
    void on_actionLoadImage_triggered();
};

#endif // MAINWINDOW_H
